import request from '@/utils/request'

// 查询部门分组列表
export function listDeptGroup(query) {
  return request({
    url: '/comn/deptGroup/list',
    method: 'get',
    params: query
  })
}

// 查询部门分组详细
export function getDeptGroup(deptGroupUuid) {
  return request({
    url: '/comn/deptGroup/' + deptGroupUuid,
    method: 'get'
  })
}

// 新增部门分组
export function addDeptGroup(data) {
  return request({
    url: '/comn/deptGroup',
    method: 'post',
    data: data
  })
}

// 修改部门分组
export function updateDeptGroup(data) {
  return request({
    url: '/comn/deptGroup',
    method: 'put',
    data: data
  })
}

// 删除部门分组
export function delDeptGroup(deptGroupUuid) {
  return request({
    url: '/comn/deptGroup/' + deptGroupUuid,
    method: 'delete'
  })
}
